package top.wyix.framework.translate.config;

import com.fhs.trans.service.impl.TransService;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import top.wyix.framework.translate.core.util.TranslateUtils;

/**
 * @author wangdx
 */
@AutoConfiguration
public class TranslateAutoConfiguration {
    @Bean
    @SuppressWarnings({"InstantiationOfUtilityClass", "SpringJavaInjectionPointsAutowiringInspection"})
    public TranslateUtils translateUtils(TransService transService) {
        TranslateUtils.init(transService);
        return new TranslateUtils();
    }
}
